<template>
	<view>
		<view class="main-center">
			<u-sticky>
				<tui-grid >
					<tui-grid-item :cell="3" @click="detail(1)">
						<view class="tui-grid-icon">
							<tui-icon name="listview"></tui-icon>
						</view>
						<text class="tui-grid-label">我的发布</text>
					</tui-grid-item>
					<tui-grid-item :cell="3" @click="detail(2)">
						<view class="tui-grid-icon">
							<tui-icon name="evaluate"></tui-icon>
						</view>
						<text class="tui-grid-label">发布</text>
					</tui-grid-item>
					<tui-grid-item :cell="3" @click="detail(3)">
						<view class="tui-grid-icon">
							<tui-icon name="notice"></tui-icon>
						</view>
						<text class="tui-grid-label">与我相关</text>
					</tui-grid-item>
				</tui-grid>
			</u-sticky>
			
			<view style="padding: 20rpx 2rpx;">
				<order ref="orderView"></order>
			</view>
			
		</view>
	</view>
</template>

<script>
	import order from '../../components/order_details/order_details.vue'
	export default {
		name:"add",
		components:{
			order,
		},
		data() {
			return {
				step:1,
					steps: [{
						name: '待接受'
					}, {
						name: '一起玩'
					}, {
						name: '已结算'
					}],
					current: 0,
					icon: 'checkmark',
					mode: 'number',
					direction: 'row',
					user:{
						id:"654214",
						avatar:"http://img3.imgtn.bdimg.com/it/u=1150341365,1327279810&fm=26&gp=0.jpg",
						name:"名字可以有8个字",  // 名字
						sexAge:"♀23",  // 性别年龄
						type:"error",
						views:"254",  // 浏览量
						orderVolume:"21",  // 订单量
						score:"4.7",
						birthday:"2003-5-1",
						constellation:"水瓶座",
						region:"湖南 娄底 娄星区",
						signature:"签名二十个字签名二十签名二十个签名二十个"
					},
				progressList:[
					{
						icon:'agree',
						sta:'已结束',
						msg:'已确认结束，对方收到您的金币啦~',
						time:'2019-05-01 03:32:54'
					},
					{
						icon:'attestation',
						sta:'请求结束',
						msg:'游戏玩完啦，快确认给对方金币吧~',
						time:'2019-05-01 03:28:06'
					},
					{
						icon:'imface',
						sta:'正在游戏',
						msg:'已经开始一起玩啦~',
						time:'2019-05-01 02:08:16'
					},
					{
						icon:'notice',
						sta:'已同意',
						msg:'对方已同意，可以开始一起游戏啦',
						time:'2019-05-01 02:08:16'
					},
					{
						icon:'order',
						sta:'已下单',
						msg:'您提交了订单，请等待对方确认',
						time:'2019-05-01 02:04:16'
					},
				],
			};
		},
		methods:{
			detail(e){
				if(e == 1){
					console.debug('我的发布');
					uni.navigateTo({
						url:'../../pages/okami_list/okami_list?action=my'
					});
				}else if(e == 2){
					console.debug('发布');
					uni.navigateTo({
						url:'../../pages/okami_publish/okami_publish'
					});
				}else if(e == 3){
					console.debug('与我相关');
					uni.navigateTo({
						url:'../../pages/user_about_me/user_about_me'
					});
				}
			}
		}
	}
</script>

<style  lang="scss">
	.main-center{
		padding: 40rpx;
	}
	.tui-grid-icon {
		width: 64rpx;
		height: 64rpx;
		margin: 0 auto;
		text-align: center;
		vertical-align: middle;
	}
	.tui-grid-label {
		display: block;
		text-align: center;
		font-weight: 400;
		color: #333;
		font-size: 28rpx;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		margin-top: 10rpx;
	}
	.tui-order-header {
		padding: 30rpx;
		box-sizing: border-box;
		background: #fff;
	}
	
	.tui-text {
		font-size: 28rpx;
		color: #333;
		padding: 4rpx;
	}
	
	.tui-bold {
		font-weight: bold;
	}
	
	.tui-node {
		height: 44rpx;
		width: 44rpx;
		border-radius: 50%;
		background-color: #ddd;
		display: flex;
		align-items: center;
		justify-content: center;
		color: #fff;
		flex-shrink: 0;
	}
	
	.tui-node-dot {
		height: 16rpx;
		width: 16rpx;
		background-color: #ddd;
		border-radius: 50%;
		/* transform: translateY(45%); */
		margin-top: 6rpx;
	}
	
	.tui-bg-primary {
		background: #EB0909 !important;
	}
	
	.tui-order-tracking {
		padding: 30rpx 30rpx 30rpx 40rpx;
		background: #fff;
		margin-top: 20rpx;
		box-sizing: border-box;
	}
	
	.tui-order-title {
		padding-bottom: 12rpx;
		font-size: 32rpx;
		color: #333;
		font-weight: bold;
	}
	
	.tui-order-desc {
		padding-bottom: 12rpx;
		font-size: 28rpx;
		color: #333;
	}
	
	.tui-ptop {
		display: flex;
		justify-content: flex-start;
		line-height: 28rpx;
	}
	
	.tui-order-time {
		font-size: 24rpx;
		font-weight: bold;
	}
	
	.tui-gray {
		color: #848484 !important;
	}
	
	.tui-light-gray {
		color: #888 !important;
	}
	
	.tui-primary {
		color: #5677fc;
	}
.order-info{
	
}
.step{
	background-color: #FFFFFF;
}
.step-head{
	padding: 40rpx 30rpx;
}
.step-foot{
	display: flex;
	padding: 10rpx 30rpx 30rpx 40rpx;
}
.yt-list {
		margin-top: 16upx;
		background: #fff;
	}

	.yt-list-cell {
		display: flex;
		align-items: center;
		padding: 10upx 30upx 10upx 40upx;
		line-height: 70upx;
		position: relative;

		&.cell-hover {
			background: #fafafa;
		}

		&.b-b:after {
			left: 30upx;
		}

		.cell-icon {
			height: 32upx;
			width: 32upx;
			font-size: 22upx;
			color: #fff;
			text-align: center;
			line-height: 32upx;
			background: #f85e52;
			border-radius: 4upx;
			margin-right: 12upx;

			&.hb {
				background: #ffaa0e;
			}

			&.lpk {
				background: #3ab54a;
			}

		}

		.cell-more {
			align-self: center;
			font-size: 24upx;
			color: $font-color-light;
			margin-left: 8upx;
			margin-right: -10upx;
		}

		.cell-tit {
			flex: 1;
			font-size: 26upx;
			color: $font-color-light;
			margin-right: 10upx;
		}

		.cell-tip {
			font-size: 26upx;
			color: $font-color-dark;

			&.disabled {
				color: $font-color-light;
			}

			&.active {
				color: $base-color;
			}
			&.red{
				color: $base-color;
			}
		}

		&.desc-cell {
			.cell-tit {
				max-width: 90upx;
			}
		}

		.desc {
			flex: 1;
			font-size: $font-base;
			color: $font-color-dark;
		}
	}
.goods-section {
		margin-top: 16upx;
		background: #fff;
		padding-bottom: 1px;

		.g-header {
			display: flex;
			align-items: center;
			height: 84upx;
			padding: 0 20upx;
			position: relative;
		}

		.logo {
			display: block;
			width: 50upx;
			height: 50upx;
			border-radius: 100px;
		}

		.name {
			font-size: 30upx;
			color: $font-color-base;
			margin-left: 24upx;
		}

		.g-item {
			display: flex;
			margin: 20upx 30upx;

			image {
				flex-shrink: 0;
				display: block;
				width: 140upx;
				height: 140upx;
				border-radius: 4upx;
			}

			.right {
				flex: 1;
				padding-left: 24upx;
				overflow: hidden;
			}

			.title {
				font-size: 30upx;
				color: $font-color-dark;
			}

			.spec {
				font-size: 26upx;
				color: $font-color-light;
			}

			.price-box {
				display: flex;
				align-items: center;
				font-size: 32upx;
				color: $font-color-dark;
				padding-top: 10upx;

				.price {
					margin-bottom: 4upx;
				}
				.number{
					font-size: 26upx;
					color: $font-color-base;
					margin-left: 20upx;
				}
			}

			.step-box {
				position: relative;
			}
		}
	}
</style>
